﻿using System;
using System.Collections.Generic;
using DevExpress.Xpo;
using System.Text;

namespace BusinessObjects
{
    public class PhanQuyen : XPObject
    {
        public PhanQuyen()
            : base()
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public PhanQuyen(Session session)
            : base(session)
        {
            // This constructor is used when an object is loaded from a persistent storage.
            // Do not place any code here.
        }

        public override void AfterConstruction()
        {
            base.AfterConstruction();
            // Place here your initialization code.
        }

        //Fields
        TaiKhoan fTaiKhoan;
        [Association(@"PhanQuyenReferencesTaiKhoan")]
        public TaiKhoan TaiKhoan
        {
            get { return fTaiKhoan; }
            set { SetPropertyValue<TaiKhoan>("TaiKhoan", ref fTaiKhoan, value); }
        }
        Khoa fKhoa;
        [Association(@"PhanQuyenReferencesKhoa")]
        public Khoa Khoa
        {
            get { return fKhoa; }
            set { SetPropertyValue<Khoa>("Khoa", ref fKhoa, value); }
        }
    }
}
